const axios = require('axios')
async function getVersion() {
  const { data } = await axios.get('https://registry.npmmirror.com/-/binary/git-for-windows')
  const versionstring = data[data.length - 1].name
  const version = versionstring.match(/v(.*?)\.windows/)[1]
  console.log(version)
}
getVersion()